//
// Created by 12992 on 24-10-13.
//

#ifndef FILESELECTOR_H
#define FILESELECTOR_H

#include <QWidget>


namespace gui::widgets
{

    class DropUpload;

    class UploadBar;

    QT_BEGIN_NAMESPACE

    namespace Ui
    {
        class FileSelector;
    }

    QT_END_NAMESPACE

    class FileSelector : public QWidget
    {
    Q_OBJECT

    public:
        explicit FileSelector(QWidget* parent = nullptr);

        ~FileSelector() override;

    signals:

        void fileUpload(const QString& path);

        void canceled();

    private:
        void init_widgets();

        void init_signals();

    private:
        Ui::FileSelector* ui;
        DropUpload* fileDropUpload{};
        UploadBar* uploadBar{};
    };
} // gui::widgets

#endif //FILESELECTOR_H
